from flask import Flask, render_template
app = Flask(__name__)

@app.route('/')
def index():
    print(app.secret_key)
    return str(app.secret_key)

# app.config.from_object({'TESTING': False, 'SECRET_KEY': b'xxxx'})
# print(app.config.from_envvar('YOURAPPLICATION_SETTINGS'))
# print(app.debug)
# print(app.secret_key)
# app.config.from_object('configmodule.ProductionConfig')
# print(app.__dict__)
from configmodule import ProductionConfig
app.config.from_object(ProductionConfig())
print(app.config["DATABASE"])
# print(app.DATABASE)
if __name__ == "__main__":
    app.run(host='0.0.0.0', port=8000)